package com.personal.mapper;

import com.personal.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {


    @Select("select id,name,identify from user where name = #{name} and password = #{password}")
    User login(User user);

    @Insert("insert into user (name,gender,password,identify,create_time,update_time) values (#{name},#{gender},#{password},#{identify},#{createTime},#{updateTime})")
    int register(User user);
}
